import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import axios from 'axios';



Vue.prototype.$axios = axios;
Vue.prototype.$http = axios;



// axios.defaults.baseURL = "http://127.0.0.1:9000"
axios.defaults.baseURL = "http://8.130.32.152:9000"

axios.interceptors.request.use(config => {
  if(config.method == "post") {
    config.data = qs.stringify(config.data);
  }
  return config;
});

Vue.use(ElementUI);
Vue.config.productionTip = false
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
